home *** CD-ROM | disk | FTP | other *** search
- /**************************************************************
- *
- * GRAPHICS.PIF
- *
- **************************************************************/
-
- /***************/
- void draw_note /*
- ****************/
- (
- int handle, /* VDI workstation handle */
- int *points, /* points[0]: x-value of 1. corner
- points[1]: y-value of 1. corner
- points[2]: x-value of 2. corner
- points[3]: y-value of 2. corner */
- int type, /* see below */
- int style, /* fill style */
- int color /* fill color */
- ) ;
-
- /******** note type is a set of the following attributes *****/
-
- #define HEAD_LINE 0x0001 /* note head marked with a line */
- #define TAIL_LINE 0x0002 /* note tail marked with a line */
- #define HEAD_TRI 0x0004 /* note head marked with a triangle */
- #define TAIL_TRI 0x0008 /* note tail marked with a triangle */
- #define BODY_RECT 0x0010 /* note body is a rectangle */
- #define BODY_ELLIP 0x0020 /* note body is an ellipse */
- #define BODY_FRONT 0x0100 /* note body is in foreground */
- #define HEAD_CUT 0x1000 /* points[0] in middle of note body */
- #define TAIL_CUT 0x2000 /* points[2] in middle of note body */
-
- /* other attributes may follow ... */
-
-
- typedef enum {behind, between} MARK_MODE ;
-
- /****************/
- void draw_lines /*
- *****************/
- (
- int handle, /* VDI workstation handle */
- char number, /* number of lines to be drawn */
- char first_marked, /* first line with special marking */
- char d_marked, /* special marking each d_marked lines */
- MARK_MODE mode, /* where to place rectangle marks */
- int styles[12], /* styles to be used after a special line */
- int colors[12], /* colors to be used after a special line */
- char first_number, /* number (text) for first special line */
- int number_dots, /* of special line, no dots if -1 */
- int dx_text, /* text (number) offset from x_start on */
- int dy_text, /* text (number) offset from y_start on */
- int x_start, /* of first line */
- int y_start, /* of first line */
- int x_end, /* of first line */
- int y_end, /* of first_line */
- float dx, /* distance of succeeding lines */
- float dy /* distance of succeeding lines */
- ) ;
-